package com.sale.system.controller;

import com.sale.system.service.ISysMidSplitService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description 最大流水号控制层
 * @Param
 * @Date 22-12-07
 * @Author hl
 **/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/split")
public class SysMidSplitController {

    private final ISysMidSplitService sysMidSplitService;

    /**
     * 获取最大流水号
     */
    @GetMapping("/splitList")
    public String splitList(String str1)
    {
        return sysMidSplitService.selectSplitStr(str1);
    }

}
